package selfview.sufutian.com.myapplication;

import android.app.Activity;
import android.os.Bundle;

import android.widget.LinearLayout;

import androidx.annotation.Nullable;

import selfview.sufutian.com.myapplication.draw2d.PathDemoView;

/**
 * Created by sufutian on 2017/7/26.
 */

public class PathMeasureDemo extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.draw_2d_api);
        init();
    }

    private void init() {
        LinearLayout layout = (LinearLayout) findViewById(R.id.root);

        final PathDemoView view = new PathDemoView(this);

        view.setMinimumWidth(1080);
        view.setMinimumHeight(1920);

        layout.addView(view);

    }
}
